// import { lazy } from 'react'
import { RouteObject } from 'react-router-dom'

import Login from '@/views/auth/Login'
import Dashboard from '@/views/dashboard/Dashboard'
import Root from '@/views/Root'

const routes: RouteObject[] = [
  {
    path: '/',
    Component: Root,
    children: [
      {
        index: true,
        Component: Dashboard,
      },
      {
        path: 'login',
        Component: Login,
      },
    ],
  },
]

export default routes
